package zy011;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.Calendar;

public class zy23 {
	public static void main(String[] args) throws IOException {
		Reader reader=new FileReader("d:\\mp.mp3");
		BufferedReader br=new BufferedReader(reader);
		Writer out=new FileWriter("3.mp3");
		BufferedWriter bw=new BufferedWriter(out);
		char[] buf=new char[1];
		int len=0;
		long before = Calendar.getInstance().getTimeInMillis(); 
		while((len=br.read(buf))!=-1){
			bw.write(buf,0,len);
		}
		long after = Calendar.getInstance().getTimeInMillis();
		long time=after-before;
		System.out.println(time);//136
		br.close();
		bw.close();
	}
}
